FROM ubuntu:20.04
ENV TZ=Asia/Shanghai
ADD QGroundControl-x86_64.AppImage /
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
  && sed -i 's/archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list \
  && apt update \
  && usermod -a -G dialout root \
  && apt-get -y remove modemmanager \
  && apt install -y gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl libfuse2 libxcb-xinerama0 libxkbcommon-x11-0 libxcb-cursor-dev \
  && chmod +x /QGroundControl-x86_64.AppImage
